Pathfinder works, but takes odd path