fixed crash when creating cpv tree string