Crafting calculation bugfix