clear FSM.nextState after transition, see #3274