Fix DFS/BFS search conclusion