Fix iOS user agent detection