fix agenda.js