Fixed crashing when clicked out of map