fixed bfs