Fix network check

Change-Id: Ie817995d283f0fc0e5ffe28361437514e2c44a1b