Fixing issue with accessing consumes/produces arrays.