Fix bug in ore generation