Save previous state, fsm_action might change it