fix in network.cpp