Fix crash on older iOS versions.