Detach $root from child scopes