fixed a compilation warning in network.cpp