Fixed events.js