Fixed the merge when we had a replace index inside the jsonElement.