fixed bug with termination condition on pathfinder re-use