correction bug dfs to bfs