Modify class variable name.
Fix a bug of event simulating.

Callbacks of some events will trigger twice when simulate event.