fixed a bug in Network.h