Fixed bug in array chunker