diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index 5a2dd7d094b1c633452ab2f8cfd7264220030f0e..3c17b690bb5f17ae67f768616401dec9d8c9c9ed 100755
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -1018,7 +1018,7 @@ class ListBoxWidget(Widget.Widget):
         else:
           #LOG('ListBox 612', 0, str((selection_name, selection.__dict__)))
           if list_method is not None:
-            if count_method is not None and not selection.invert_mode:
+            if count_method is not None and not selection.invert_mode and render_format == 'html':
               #LOG('ListBox', 0, 'use count_method %r' % count_method)
               # If the count method is available, get only required objects.
               selection.edit( params = kw, report = None )