fixed the agenda to works without permalinks