Fix some bugs in BFS2::findBestRoots()