fixing bug where duplicates of the map view would crash the app