Fix a issue of network library.
Some trivial modifications.