fix for map creation