fixing security breach about mails