fixing editor-mode changing bug