Fix queues being assigned by reference (#62)