fix #2
Adding a cleaning function for janitor when events are duplicated