Cannot set bounds of AABB

Hello,
I am using box2d in openframeworks and i'm having a weird problem. I am trying to set the size of the box to query overlap but it only works at a single point instead of the bounds of the box i set.

For reference, here is some code from the ofxBox2d class to set mouse grabbing. I try to set d as a much bigger size but it only works at the precise mouse vector.

Am I missing something here or is this a bug? Any help is much appreciated!

Code:
      // Make a small box.
      b2AABB aabb;
      b2Vec2 d;
      d.Set(0.001f, 0.001f);
      aabb.lowerBound = p - d;
      aabb.upperBound = p + d;
      
      // Query the world for overlapping shapes.
      QueryCallback callback(p);
      world->QueryAABB(&callback, aabb);
      
      if (callback.m_fixture) {
         b2Body* body = callback.m_fixture->GetBody();
         b2MouseJointDef md;
         md.bodyA    = mouseBody;
         md.bodyB    = body;
         md.target   = p;
         md.maxForce = 1000.0f * body->GetMass();
         mouseJoint  = (b2MouseJoint*)world->CreateJoint(&md);
         body->SetAwake(true);
      }

Please show your QueryCallback class.
Code:
class QueryCallback : public b2QueryCallback {
   
public:
   QueryCallback(const b2Vec2& point) {
      m_point = point;
      m_fixture = NULL;
   }
   
   bool ReportFixture(b2Fixture* fixture) {
      b2Body* body = fixture->GetBody();
      if (body->GetType() == b2_dynamicBody)
      {
         bool inside = fixture->TestPoint(m_point);
         if (inside)
         {
            m_fixture = fixture;
            
            // We are done, terminate the query.
            return false;
         }
      }
      
      // Continue the query.
      return true;
   }
Yeah, the problem is this:

Code:
         bool inside = fixture->TestPoint(m_point);
         if (inside)
         {
            m_fixture = fixture;
            
            // We are done, terminate the query.
            return false;
         }

As the code suggests, it's doing an additional test for the exact point you passed in (I was wondering why it needs to pass a point in). This would only be needed if you want the exact point (i.e. for mouse dragging using the b2MouseJoint). The fixtures passed to the ReportFixture are already the fixtures that are overlapping the AABB, so the test for the exact point isn't needed.
Aha! Yes it was so simple. Thank you, problem solved!

Original thread: https://box2d.org/forum/viewtopic.php?t=8386