fix sendgrid error