fixed the email notification bug; closes #87.