Bug Fix

fix DFA's bug.slightly modified code structure. :tada: /play tada