fix event api