fix exception when launch app