fixed crashes on my ipad1