Bug fix for daily aggregation of derived vars