Fixed bug with loading map when anothr map is loaded and with clearing map.