fix for crash with Samsung devices and Android 4.2