fix error that was breaking crafting.