bug fix mailer