fix const capture tree