fixed bug sending too large UDP packets