fixed rootscope error