Fixed compatibility issue with Android 2.3