fix bugs: can't refresh widget data when close the app for a long time