fix error when server not reachable