Handle duplicate indices without errors