Fix crash when app at back for long time