Fix flow calculation of backward edges.