update brevo logic error