Fixed bug when clicking on nonwalkable area