solved autodiscover bug