maprotation bug fix