editor - fix bug