Fixed a bug when server not responding.