Launcher: fix crash bugs.