Fix setCurrentRoot.

Pop old stack before switching roots