treat user agent error