Fix bug in module agenda