fixed some bugs in new spellcheck.