fix crash on Android 2.3