Minor fixes in the networking protocol