Fix pcap problems