Bugfix for API query to obtain queues stats