Bugfixes for spells