Filter duplicate events.