fix email_templates for pending invitations