Corrected return of userAgent