Fix infinite error if user switches to bad server