autoDiscover error fixed