Fix FSM.