BFS path fix