Fix sniff Undefined offset error causing unit test to fail.