fixed crash when app is launched
fixed crash when app is launched