Need help with angle of static box

I have static objects objects, but when I am creating them and set the angle, they grow extraordinarily larger.

As you can see in the screenshot, all of the boxes share the same height, except for the fat box 😀

The angle is perfect, but when the angle is changed, it also changes the size of the box. Any ideas how to fix this?

Here is the code associated with the creation of my boxes:
Code:
private function addStaticBox(x, y, wid, heig, nAngle) : b2Body {
         bodyDef = new b2BodyDef();
         bodyDef.position.x = x/30;
         bodyDef.position.y = y/30;
         bodyDef.angle = nAngle * 3.1459 / 180;

/////////////////////////////////////////////////////////////////////////////////////

         boxDef = new b2PolygonDef();
         boxDef.SetAsBox(wid/30/2, heig/30/2);
         boxDef.density = 0.0;
         boxDef.friction = 0.0;
         boxDef.restitution = 0.1;


Image
are you using debugdraw or your own drawing?
Code:
bodyDef.userData = new PhysBox(wid, heig);
   addChild(bodyDef.userData);


My own.

And all that is, is an empty box that resizes based on the dimensions I set it at. So this code follows the other code I pasted in my first post.
try the debug draw. You might have made a mistake somewhere. Its worth double cheacking. If your system works, then just set it as a orientated box

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