scope vs rootScope fixes