correct bug for initializing union_find