fixing typo in model.aggregate