Fixed null pointer on android.