Fix bug with inconsistent marking of misspelt words