Fix crash on pre-4.1 devices.