Fix a minor codegen defect in element proxies.