Fixed some spell crafting bugs