fixed bug in spellchecking