Fix generation of ores