diff --git a/dataset_woz2.py b/dataset_woz2.py
index fcb802f3dac8b29f9392cdbdc242f5774cf5109f..ef0a1efbaf98888f3103602e9210148ab835b03c 100644
--- a/dataset_woz2.py
+++ b/dataset_woz2.py
@@ -69,6 +69,7 @@ def check_label_existence(label, usr_utt_tok, sys_utt_tok):
 
 def get_turn_label(label, sys_utt_tok, usr_utt_tok, slot_last_occurrence):
     usr_utt_tok_label = [0 for _ in usr_utt_tok]
+    in_sys = False
     if label == 'none' or label == 'dontcare':
         class_type = label
     else: