Fixed bug in aggregation. Email sending enabled