Fix delete not deleting and duplicate events.