Fixed segmentation fault on map load