Fix aggregate method in Groupaign model