fixed some errors in the sniff-sweep function