Bug fix for activity detail.