fix user agent issues