fixed typo in event api