don't init bfs threshold twice