Fixed all the problems on AMQP for receiving messages.