fix an error in an example of the event simulate documentation