Fix setting the bounds of the map.