fix to AMQP module