Fixed not casting spells.