bugfix: in union-find