Fix copy paste error in map creation logic.