fix a bug of crash when touching screen when CMessageBox is shown