fix minor aggregate bug