Rolling up algorithm didn't seem to like certain structures. Reverting to dumb parent_id and reference index algorithm.