make sure array indices are ints