fix setting bug on Android 2.3