Fixed minor UDP sending bugs