Fix problems when spellcheck is on