fix ipad and iphone bugs