fix editor bug