fixed iPad Safari bug