text editor bug fix
text editor bug fix