Fixing rootscope dependency