read only editor bug fix