fixup index sets for c