Fixed stupid bug when sending email