fix bug JOYL-89, array is out of bounds.

array is out of bounds.