fix event API