Fix problem with rootscope