fix rootScope problem