Fixed failing events.js