events.js hotfix