Pathfinder bugfix