[wip] fixed to resolve shortest path.