bug fix rootscope