Pr25

The impact of bug fixing #25 regarding activity deletion was missing in the previous commit.
Included in this one.