diff --git a/src/debug.c b/src/debug.c
index 49273e6c1c19f82f308a24f2d4158bde8aa656d6..a48a41925cc9e502bd5cf3fe9cf415da87280ce0 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -75,7 +75,7 @@ void printgParticle(struct gpart *parts, long long int id, int N) {
           "## gParticle[%d]: id=%lld, x=[%.16e,%.16e,%.16e], "
           "v=[%.3e,%.3e,%.3e], a=[%.3e,%.3e,%.3e], m=%.3e, t_begin=%.3e, "
           "t_end=%.3e\n",
-          i, (parts[i].id < 0) ? -parts[i].id : parts[i].part->id,
+          i, parts[i].part->id,
           parts[i].x[0], parts[i].x[1], parts[i].x[2], parts[i].v[0],
           parts[i].v[1], parts[i].v[2], parts[i].a[0], parts[i].a[1],
           parts[i].a[2], parts[i].mass, parts[i].t_begin, parts[i].t_end);
diff --git a/src/runner_doiact_grav.h b/src/runner_doiact_grav.h
index 85329c95a4723cf01b92a52b5500cac05020b876..dba2321365b2af92e3a5a1ed4e5fe0aa7ad05c11 100644
--- a/src/runner_doiact_grav.h
+++ b/src/runner_doiact_grav.h
@@ -582,7 +582,7 @@ void runner_dosub_grav(struct runner *r, struct cell *ci, struct cell *cj,
     /* Get the opening angle theta. */
     float dx[3], theta;
     for (k = 0; k < 3; k++) {
-      dx[k] = fabsf(ci->loc[k] - cj->loc[k]);
+      dx[k] = fabs(ci->loc[k] - cj->loc[k]);
       if (periodic && dx[k] > 0.5 * s->dim[k]) dx[k] = -dx[k] + s->dim[k];
       if (dx[k] > 0.0f) dx[k] -= ci->h[k];
     }
diff --git a/src/scheduler.c b/src/scheduler.c
index 41826ce22181ebb3ed625aac07e327bb49461640..468e835520254c540e1b97bb87f1b11d17d09f66 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -598,7 +598,7 @@ void scheduler_splittasks(struct scheduler *s) {
           /* Get the opening angle theta. */
           float dx[3], theta;
           for (k = 0; k < 3; k++) {
-            dx[k] = fabsf(ci->loc[k] - cj->loc[k]);
+            dx[k] = fabs(ci->loc[k] - cj->loc[k]);
             if (s->space->periodic && dx[k] > 0.5 * s->space->dim[k])
               dx[k] = -dx[k] + s->space->dim[k];
             if (dx[k] > 0.0f) dx[k] -= ci->h[k];