fix bug ArrayOutOfBound