Reset changed to onLeave instead of onEnter