Fixed exception when accessing AMQ