event api fix