fix udp socket problem