Fix in state machine base going to the initial state with the first dispatched action