fixed the email sending on agreement creation