fix add event API