fix MaxFlow