Fixed pause not working correctly after game restart