diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py
index 1b3c15a55b40ee38abbfe743a642436209f06817..03daff945b6cf9c919140d4b5b0f0f8ed4b48989 100644
--- a/product/ERP5/Tool/SimulationTool.py
+++ b/product/ERP5/Tool/SimulationTool.py
@@ -453,8 +453,9 @@ class SimulationTool(BaseTool):
         select_dict = new_kw.get('select_dict', dict())
         related_key_select_expression_list = new_kw.pop(
                 'related_key_select_expression_list', [])
-        if related_key_select_expression_list:
-          select_dict[x] = '%s_%s' % (table, x)
+        for related_key_select in related_key_select_expression_list:
+          select_dict[related_key_select] = '%s_%s' % (table,
+                                                       related_key_select)
         new_kw['select_dict'] = select_dict
 
         # Column values