fix template rootscope