A few bug fixes for the BFS Graph Search