Small bugfix in agenda