Fixed editor bug