bugfix: use correct activity lifecycle.