fix editor instance check
Merge pull request #166 from yongkangchen/master

fix editor instance check