Merging duplicate events