fix fail when bad server adress