fixing env mailer bug