fix bug in ipad1