I fixed the errors in editorWindow