Fix bug on Android 2.3