fixed crash when returning from some apps