hi damien,

i think we need to completely reset the Tree behavior when changing scope. Which is why @real34 did not check for Tree has been loaded in the original PR.

In any case, I will check again if it's doable that way.