Fixed some networking stuff