Fix crash on some older devices