Fixed a small bug in networking