Fix error for ipad