fix crash when mouse out of game area