fixed problem with loading map