Fix small bug in array generator.