Array out-of-range fix.