Agenda fixes
fixes for prefs