fix aggreation bug.