fixed some stupid error in sniff