duplicateevents fix