diff --git a/product/CMFCategory/CategoryTool.py b/product/CMFCategory/CategoryTool.py
index 447426c6fe09fe675ef5370a782b5b56a783fd6a..fde325d6dd433cc0bdfdc9182ea7d9c678e0f52b 100644
--- a/product/CMFCategory/CategoryTool.py
+++ b/product/CMFCategory/CategoryTool.py
@@ -882,7 +882,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
         # First we look at local ids
         for object_id in base_category_value.getAcquisitionObjectIdList():
           my_acquisition_object = None
-          if my_acquisition_object in context.objectIds():
+          if object_id in context.objectIds():
             my_acquisition_object = getattr(context, object_id)
           if my_acquisition_object is not None:
             #my_acquisition_object_path = my_acquisition_object.getPhysicalPath()