When going back to map, properly flush all other pages