Corrected the arrayBoundExceptionError