fixed error in map generator.