corrected the map rotation