Fixed the case when the server is not available.