Fixes error for amqp where r is a list