fix state machine statuses