Bug fix for activity-detail page.