fix error judgment on return value in pauseframe