fixed agenda: close agenda if there are potential clashing tasks