fixed the user agent error