fixed autodiscover