bugfix when watching editor