bugfix in user agent management