diff --git a/src/scheduler.c b/src/scheduler.c
index a8ac330676b31eb6d476670718bed83ed421d9bd..b5f512c25b73cbbf6ff7451859db963fd46ab19d 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -1835,6 +1835,10 @@ void scheduler_reweight(struct scheduler *s, int verbose) {
       case task_type_rt_tchem:
         cost = wscale * count_i;
         break;
+      case task_type_csds:
+        cost =
+          wscale * (count_i + gcount_i + scount_i + sink_count_i + bcount_i);
+        break;
       case task_type_kick1:
         cost =
             wscale * (count_i + gcount_i + scount_i + sink_count_i + bcount_i);
diff --git a/src/space_recycle.c b/src/space_recycle.c
index cdd884d925984e73336f78c9f1570cca98910462..a037cc689d64527beba4a96de105705161e8f45d 100644
--- a/src/space_recycle.c
+++ b/src/space_recycle.c
@@ -150,6 +150,9 @@ void space_rebuild_recycle_mapper(void *map_data, int num_elements,
     c->black_holes.do_gas_swallow = NULL;
     c->black_holes.do_bh_swallow = NULL;
     c->black_holes.feedback = NULL;
+#ifdef WITH_CSDS
+    c->csds = NULL;
+#endif
     c->kick1 = NULL;
     c->kick2 = NULL;
     c->timestep = NULL;