fixed an error with the state on the simple editor.