state transition correction