fixing the activity reference