bug fixes for in-area aggregation