I think  you want to use QUEUE_LIMIT instead of MAX_QUEUES here. Otherwise it won't compute histograms from the remaining queues.