[FIX]Fixed traceback key error for state.