Fix a bug in BFSMulti