Fix tree-based bias calculation. Consider parent bias.