fix bug in spell checker