Minor bug fix for very large arrays.