emit correct event