fix an issue on user agent issue.