Fixed the issue with merging items