fixed a bug in event api implementation
1.1.1