Fix small bug in map rotation