Fix some network stuff