fixed input/output in MaxFlowFF