fixed mapgen bugs