rmq, bug fix