Fix order of event api params