[scheduling] More fixes to min-flow scheduler.