Fix for adding the template into the activity model when saving.