fix Editor's bug