fixed bug when crafting