fixing buges for sendgrid