fix the aggregation of variable declaration