avoiding error with mails