Fix #62: queues being assigned by reference