Fixed issue with switching to the root.