Fixed initialization of tree validator