Fixed error when flow is max on one path.