fix event triggering