[BUGFIX] Fix problem when activity is not ready
[BUGFIX] Do tab clean on pause/resume event