Landscape - foliage/sculpting problem

Try selecting corrupted foliages with lasso tool (select the foliages before you want fix) and press End key. At least it worked for me (4.22).