fix for email erros in production