fix err in mailer