Stupid array boundary fix

Fixed ArrayOutOfBounds..