Fixing issue where user agent doesn't exist.