diff --git a/product/ERP5Form/Extensions/Folder_getWorkflowActionDocumentList.py b/product/ERP5Form/Extensions/Folder_getWorkflowActionDocumentList.py
index 18c6db334b7d108fc6df33773727c8c2aa3261c0..8c11a8079d4170dc0715a93ea3636236cd71d75e 100644
--- a/product/ERP5Form/Extensions/Folder_getWorkflowActionDocumentList.py
+++ b/product/ERP5Form/Extensions/Folder_getWorkflowActionDocumentList.py
@@ -76,9 +76,7 @@ def getDocumentGroupByWorkflowStateList(self, form_id='', **kw):
                        'catalog.%s is not NULL' % workflow_state
       params['group_by'] = ('catalog.portal_type',
                                       'catalog.%s' % workflow_state)
-      params['select_expression'] = (
-          'catalog.path, count(catalog.uid) as count, catalog.portal_type, catalog.%s'
-            % workflow_state)
+      params['select_dict'] = {'count': 'count(catalog.uid)'}
       
       for brain in selection_tool.callSelectionFor(selection_name, params=params):
         doc = brain.getObject()