fixed broken shortest paths