Bugfixes for spells

Adding spells seemed to create error, so this fix corrects for that.