small fix to sortable agenda (2nd try)