bug fix in production email setup