fix user agent header problem