Fixed bug in Network