My ponies with standing problems were also ones that had gone rusty, so I popped their heads off, cleaned them out, then filled the body with boiling water from the kettle (be careful not to overfill it too much, or it'll come out the tail hole and burn you! I learnt the hard way
), stuck pens between the legs and then left it to cool off. After the water was cool I poured it out but left the pony standing with penned legs for another day or so. I can't put ponies in the freezer to "set" their pose so they're still a tiny bit bent and some of them needed to be treated twice over, but they're acceptable now. My Fizzy in particular still had problems with tipsiness so I resorted to putting a marble down one of her back legs - she always tipped to the right, so I put it in the left leg to weigh that side down more. Her wonky leg was 99% fixed but that 1% was juuust enough to let her naturally unbalanced pose tip over, so the marble fixes it.
On another note, she had a bent leg that needed to be held apart both vertically and horizontally, so for the horizontal gap between the front and back legs I had to use a thicker pen to bridge it, like a whiteboard or permanent marker.