fix related to event, add some examples