Fixed bugs on android.