Adding  instead of .apply as a solution for  already in progress for rootscope