fix another nil crash in the smelter