fix merging of items