editor bug fixes