Fix bug in event deidentification