fixed errors in amazon SES call