Fixed a crash when adding/dropping a creature on map.