fixed self-emailing bug