fix mailer bug with staging