fix ipad user agent detection