Fix maxflow bug!