fixing error with ipad