fix text editor