fixing bug in rabbitmq state