fixes problem with send email notifications