Fix bug when autodiscovery with binary string