fixed issue with required=True for vartrees