fix bugs in LibNetWork