fix bug of user-agent