fixed mapgen issue