editor not defined bug