fix text edit