Bug fix for joining activities.