email variable set wrong