Fix update network state bug.