fix udp socket issue