Index: ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp
===================================================================
--- ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp	(revision 18721)
+++ ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp	(revision 18722)
@@ -719,7 +719,7 @@
 				}
 				/*Increase of the domain is on the downstream node in term of sediment head*/
 				if(sedhead[j] == sedheadmin){
-					if(old_active[i]==0) eplzigzag_counter[basalelement->nodes[j]->Lid()] ++;
+					if(old_active[j]==0) eplzigzag_counter[basalelement->nodes[j]->Lid()] ++;
 					vec_mask->SetValue(basalelement->nodes[j]->Sid(),1.,INS_VAL);
 				}
 			}
