diff --git a/product/ERP5/Tool/TemplateTool.py b/product/ERP5/Tool/TemplateTool.py
index dde04f5a6879ebda7a7e5abd077c0ae409afa1e3..4f33ae77232fae103cb5f94bad0a4cb92b65f1c9 100644
--- a/product/ERP5/Tool/TemplateTool.py
+++ b/product/ERP5/Tool/TemplateTool.py
@@ -412,7 +412,7 @@ class TemplateTool (BaseTool):
             value = None
           if prop_type in ('text', 'string'):
             prop_dict[pid] = value or ''
-          if prop_type in ('text', 'string', 'int', 'boolean'):
+          elif prop_type in ('int', 'boolean'):
             prop_dict[pid] = value or 0
           elif prop_type in ('lines', 'tokens'):
             prop_dict[pid[:-5]] = (value or '').splitlines()