bug fix 2 main activities.