Correct triggering order for events.