fix the null problem for pcap inject