fixed creating BNFTree