Fix $add promise to resolve ref