Bugfix in agenda.js (fixes #1041)
Merge pull request #1049 from DebVortex/feature/fix-issue-1041

Bugfix in agenda.js (fixes #1041)