fix bug:when the network is not working.