There is currently a bug in this version where, when crafting with your last remaining resources, the wrong items may occasionally be removed from your inventory. A fix for this will be included in the next update.