Fixed bug when changing from LifeCycleState to the next

The enterState method would use the old state's configuration settings instead of the new state's one.