Fix bug with mq_hosts access