Fixed incorrect event type being dispatched