Store a dataset as a tree

Dear experts,

may I ask you for some kind help on storing RooFit datasets as trees? It looks like something has changed somewhere between the ROOT versions 5.30 and 5.32 and I can’t understand what exactly…

Before, having a RooDataSet ds, it was possible to store it into a tree in the following way

dstree = ds -> store() -> tree()
and continue using “dstree” as with a usual TTree. However it seems that now it does not create anything at all:

dstree = ds -> store() -> tree()
(const class Tree*) 0x0

Please, could anyone point out what is the correct way of dealing with it now?
Many thanks in advance!