judging by the values printed above, it appears that 605 is bigger than maxIndex, since maxIndex is 79 according to the printout.

--
Mats