Updated the fix for ipad