Switch to Ford-Fulkerson, as Dijkstra will give the wrong result when negative edges are in play.