fix saving of activities on all ending tabs