fix the dynamic addition of activity fields. Deletion now broken