fix mailer errors