fix(rootScope): improved memory leak fix