attempts to fix broken text editor