bug fix for compiling producer/consumer arrays