fix e-mailing bug