diff --git a/product/ERP5Workflow/Document/Workflow.py b/product/ERP5Workflow/Document/Workflow.py
index 670e27eb40882308df1bb01cec6e3c407ce9e7d2..6210cd7689b244d23f443e6d63b3d2b6002a0f27 100644
--- a/product/ERP5Workflow/Document/Workflow.py
+++ b/product/ERP5Workflow/Document/Workflow.py
@@ -418,7 +418,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
         elif (not check_guard) or \
             Guard_checkWithoutRoles(guard, security_manager, self, portal):
           is_permitted_worklist = 1
-          variable_match[SECURITY_PARAMETER_ID] = guard.roles
+          variable_match[SECURITY_PARAMETER_ID] = worklist_definition.getRoleList()
 
         if is_permitted_worklist:
           fmt_data = TemplateDict()