fix the map loading