fix perhud pktHash error, clean up error messages