Fixed bug with autocorrect in text edit