fixed bugs in sniff parser