fix ownerElement deprecation