fixed plot of maxflow