Correctly dispatch the event.