Fix parent chain computations.