Fixed the inconsistency with group_by.