Fix event struct and example.