fix error in editor