Fix invalid jobs count in queues stats