diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision
index 27e142b..b0e932c 100755
--- a/source4/scripting/bin/upgradeprovision
+++ b/source4/scripting/bin/upgradeprovision
@@ -860,11 +860,11 @@ def update_present(ref_samdb, samdb, basedn, listPresent, usns, invocationid):
                 # We have updated by provision usn information so let's exploit
                 # replMetadataProperties
                 if att in forwardlinked:
-                    if current[0].get():
+                    if current[0].get(att):
                         curval = current[0][att]
                     else:
                         curval = ()
-                    if reference[0].get():
+                    if reference[0].get(att):
                         refval = reference[0][att]
                     else:
                         refval = ()