Fixed bug with bfs