Fix path recursion.