fix another crash on ios