Notification email not working correctly.