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