union-find fixes