bug fixed in emailing