Fixing wrong merging of indiced items