small bug in map creation