fix ReferenceProxy.editTemplate