fixed a udp bug