corrected editor bug