Bug fix for very large arrays.