Fixed crafting in some cases where item was replaced