fixed sendgrid bug