fix the run error of editor