fixing editor error