fix for an issue with crafting (fixes issue #138)