Fix if name1, or name2 is root