Corrects email functionality