min cost flow error added