Fixed shrinkArray