Fix last setEditorState bug