fixes pause state  to stop state  reset bug