fixed the crash-on-launch bug on Android