Fix bug where hitting back caused the map to render incorrectly