Fix an error in editing.