fix mailer bug