Fixed bug with loseEvent