Fixed multiple email bug in email notifications