Fixing ipad bug