Fixed email notification issue.