fix bug in udp collector