Make sure we update mTNByID when we replace the root