Fix a crashing bug on Android 4.1.