Fix a bug in the DFS
Try that fix again