editor bug fix