fixes map page similar to the diagram page