diff --git a/src/Webiny/Component/Entity/Attribute/One2ManyAttribute.php b/src/Webiny/Component/Entity/Attribute/One2ManyAttribute.php
index <HASH>..<HASH> 100755
--- a/src/Webiny/Component/Entity/Attribute/One2ManyAttribute.php
+++ b/src/Webiny/Component/Entity/Attribute/One2ManyAttribute.php
@@ -230,7 +230,7 @@ class One2ManyAttribute extends AbstractCollectionAttribute
 
         $attrValues = $this->getValue();
         foreach ($attrValues as $r) {
-            if (!in_array($r->id, $newValues)) {
+            if (!in_array($r->id, $newIds)) {
                 $r->delete();
             }
         }
- fix on cleanUpRecord method