fix the network status check