diff --git a/boxtree/area_query.py b/boxtree/area_query.py
index cc3d1b6cb884c4dd3cb59fa9ca2ece832eaa3f08..3c961af793de6cfa57bf9c053455fc7bccd5c5d2 100644
--- a/boxtree/area_query.py
+++ b/boxtree/area_query.py
@@ -178,7 +178,7 @@ void generate(LIST_ARG_DECL USER_ARG_DECL ball_id_t ball_nr)
 
         if (!(box_flags[peer_box] & BOX_HAS_CHILDREN))
         {
-             ${add_box_to_list_if_overlaps_ball("peer_box")}
+            ${add_box_to_list_if_overlaps_ball("peer_box")}
         }
         else
         {