solved set bug on set_fsm