bug removal in edit_activities_index