Bug: Invalid sequence of aggregation