Fixing sampling in pcap mode.