Fixed empty user agent issue