fix user agent bug