diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml
index 8aca36ab5675f020951da91f9cb8dced3b2e9b75..458494f055f2612329c1957ff8fab548bc06ad2e 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml
@@ -111,7 +111,7 @@ for workflow_item in workflow_item_list:\n
         key = key[len(compatibility_name):]\n
     if key == wf_state_var: \n
       # Store locally the id of state, usefull for merging action and transition\n
-      state_id = wf_states.get(value, marker) and wf_states[value].id\n
+      state_id = wf_states.get(value, marker) and wf_states[value].getReference()\n
       o.setProperty(\'state_id\', state_id)\n
 \n
       key = \'state\'\n