fixed smelting recipe registration code (closes #344)