Fixed NullpointerException on Android 2.2