Fix useragent sniff bug