fixing the errors on the map page