Recursive aggrigation bug fix.