Fix bug with incorrect indexes of sub-arrays in cases when length of array is 200/300/400 etc