Fixed user agent bug