diff --git a/product/ERP5/Tool/TrashTool.py b/product/ERP5/Tool/TrashTool.py
index 5e5b038cc8f549f9ffbb422cf3e444b62d8601fa..f838f9f8cce9f609a5a791ae6870ccdd1f8e6d59 100755
--- a/product/ERP5/Tool/TrashTool.py
+++ b/product/ERP5/Tool/TrashTool.py
@@ -97,6 +97,7 @@ class TrashTool(BaseTool):
           pass
       # in case of portal types, export properties instead of subobjects
       if obj is None:
+        object_path = container_path + [object_id]
         obj = self.unrestrictedTraverse(object_path)
       if getattr(obj, 'meta_type', None) == 'ERP5 Type Information':
         subobjects_dict = {}