Pathfinder threading fixed

Thanks to krakjoe ! ;)