diff --git a/product/ERP5/Tool/TemplateTool.py b/product/ERP5/Tool/TemplateTool.py
index bd6316e4777d5c7791bfc0e2cd13bb30deba5bde..6236d39ae29c5dff41a837fdd0eced2f64057d1f 100644
--- a/product/ERP5/Tool/TemplateTool.py
+++ b/product/ERP5/Tool/TemplateTool.py
@@ -791,7 +791,7 @@ class TemplateTool (BaseTool):
               elif diff_version == 0 \
                    and previous_property_dict['revision'] \
                    and property_dict['revision'] \
-                   and previous_property_dict['revision'] < property_dict['revision']:
+                   and int(previous_property_dict['revision']) < int(property_dict['revision']):
                       template_item_dict[title] = (repository, property_dict)
         # Next, select only updated business templates.
         for repository, property_dict in template_item_dict.values():