fix editor instance check