fixed editor bug