Stop using $root from upper scopes