Fixed the error with user agent