bug fixed in email function