Fix return wrong value to get nested collection after replace value of nested collection.