Avoid reloading error of USER_AGENT in ruby client