StateMachine.is_state was bugged