diff --git a/product/ERP5/Tool/TemplateTool.py b/product/ERP5/Tool/TemplateTool.py
index f82b2a705ffbc00424a82340ef2d5a580ca6dcfa..7a51b918fab7ff98d143412fd1c3b52f9ca26703 100755
--- a/product/ERP5/Tool/TemplateTool.py
+++ b/product/ERP5/Tool/TemplateTool.py
@@ -192,7 +192,7 @@ class TemplateTool (BaseTool):
           pid = prop['id']
           if pid in ('uid', 'id'):
             continue
-          prop_path = os.path.join(tar.membernames[0], 'bt', pid)
+          prop_path = os.path.join(tar.members[0].name, 'bt', pid)
           info = tar.getmember(prop_path)
           value = tar.extractfile(info).read()
           if type == 'text' or type == 'string' or type == 'int':