fix bug of event.js
improve the details