fixes deleting activities