Fix user agent setting