Fix event triggering when no events