Email notifications bug fixed. #825