diff --git a/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/rule_interaction_workflow/scripts/Rule_updateMatrix.xml b/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/rule_interaction_workflow/scripts/Rule_updateMatrix.xml
index bb319fb640a3b45bff44e4e8cdf93edd1b249583..309c8e58f1b963565b188000c5f98b410d88b9e5 100755
--- a/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/rule_interaction_workflow/scripts/Rule_updateMatrix.xml
+++ b/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/rule_interaction_workflow/scripts/Rule_updateMatrix.xml
@@ -67,18 +67,21 @@
         <item>
             <key> <string>_body</string> </key>
             <value> <string>matrix = state_change.object\n
-matrix.updateMatrix()\n
+matrix.activate(after_path_and_method_id=([matrix.getPath(),], [\'immediateReindexObject\',\'recursiveImmediateReindexObject\'])).updateMatrix()\n
 </string> </value>
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAMAAAAEAAAAQwAA
-AHMjAAAAdAAAfAAAZAEAgwIAfQIAdAAAfAIAZAIAgwIAgwAAAWQAAFMoAwAAAE5zBgAAAG9iamVj
-dHMMAAAAdXBkYXRlTWF0cml4KAMAAABzCQAAAF9nZXRhdHRyX3MMAAAAc3RhdGVfY2hhbmdlcwYA
-AABtYXRyaXgoAwAAAHMMAAAAc3RhdGVfY2hhbmdlcwkAAABfZ2V0YXR0cl9zBgAAAG1hdHJpeCgA
-AAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMRAAAAUnVsZV91cGRhdGVNYXRyaXgBAAAAcwIA
-AAASASgBAAAAcxEAAABSdWxlX3VwZGF0ZU1hdHJpeCgBAAAAcxEAAABSdWxlX3VwZGF0ZU1hdHJp
-eCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
+            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAMAAAAHAAAAQwAA
+AHNQAAAAdAAAfAAAZAEAgwIAfQIAdAAAdAAAfAIAZAIAgwIAZAMAdAAAfAIAZAQAgwIAgwAAZwEA
+ZAUAZAYAZwIAZgIAgwABZAcAgwIAgwAAAWQAAFMoCAAAAE5zBgAAAG9iamVjdHMIAAAAYWN0aXZh
+dGVzGAAAAGFmdGVyX3BhdGhfYW5kX21ldGhvZF9pZHMHAAAAZ2V0UGF0aHMWAAAAaW1tZWRpYXRl
+UmVpbmRleE9iamVjdHMfAAAAcmVjdXJzaXZlSW1tZWRpYXRlUmVpbmRleE9iamVjdHMMAAAAdXBk
+YXRlTWF0cml4KAMAAABzCQAAAF9nZXRhdHRyX3MMAAAAc3RhdGVfY2hhbmdlcwYAAABtYXRyaXgo
+AwAAAHMMAAAAc3RhdGVfY2hhbmdlcwkAAABfZ2V0YXR0cl9zBgAAAG1hdHJpeCgAAAAAKAAAAABz
+DwAAAFNjcmlwdCAoUHl0aG9uKXMRAAAAUnVsZV91cGRhdGVNYXRyaXgBAAAAcwIAAAAVASgBAAAA
+cxEAAABSdWxlX3VwZGF0ZU1hdHJpeCgBAAAAcxEAAABSdWxlX3VwZGF0ZU1hdHJpeCgAAAAAKAAA
+AABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>