fix crash on android.