Fixed missing aggregate cache bug.