fix bad server name exception