quick events.js fix