Why bfs is not correct