well functioning spell corrector with some bug