Fixed an issue that launch from notification causes crash