Fix errors in network.go