[pedigree] fix layout errors when two twins are in a relationship