Fix issue that "open in" does not work at launch time