Fixed a bug in ore generation