Fixed bug while loading map