Fix a Safari bug with the map layout.