Fix category_closure for categories duplicated across hierarchy