Spell function should be fixed.