Index: src/work/jacint/preflow_res.h
===================================================================
--- src/work/jacint/preflow_res.h	(revision 392)
+++ src/work/jacint/preflow_res.h	(revision 444)
@@ -127,5 +127,5 @@
 	  for(G.first(e,v); G.valid(e); G.next(e)) exc+=flow[e];
 	  OutEdgeIt f;
-	  for(G.first(f,v); G.valid(f); G.next(f)) exc-=flow[e];
+	  for(G.first(f,v); G.valid(f); G.next(f)) exc-=flow[f];
 
 	  excess.set(v,exc);	  
@@ -473,12 +473,11 @@
 
     
-    void reset_target (Node _t) {t=_t;}
-    void reset_source (Node _s) {s=_s;}
+    
+    void resetTarget (Node _t) {t=_t;}
+    void resetSource (Node _s) {s=_s;}
    
-    template<typename _CapMap>   
-    void reset_cap (_CapMap _cap) {capacity=_cap;}
-
-    template<typename _FlowMap>   
-    void reset_cap (_FlowMap _flow, bool _constzero) {
+    void resetCap (CapMap _cap) {capacity=_cap;}
+
+    void resetFlow (FlowMap _flow, bool _constzero) {
       flow=_flow;
       constzero=_constzero;
@@ -486,5 +485,4 @@
 
 
-
   };
 
