Fix undefined-error when adding queues