Fixed small editor bug