fixed the pathfinder