cleanup in ISpellMagicTemplate