Fix network check.