Found small bugs with sign in singleShortestPath