fixed problems with the map-manager