Fix doc examples for events