Fixed OutOfBounds error.