fix network state issue