Fixed bug in map creation..