fixed crash on ipad