fixes a bus in SSSP