Fixed bug in sendgrid send