fix horribad shortest path regression