Fix bug when redacting events.