pathfinder bug fix