fixed user_agent bug