bug fix for map view