fixed events.js