fixed email variable bug