fix game pause issue.