fix line tree