text editor bug