core: fix typos in union_find