small fix to sortable agenda (3rd  try)