fixbug: SIGSEGV when reopening in Android