bug fix for udp

bug fix for udp