fixed quitting the game when paused bug.