DFS problem fixed