fixed cpv-tree generation