fixed displaying pause menu