refix #795

`math.min` should have been `math.max` here.
It's currently chopping off the output of inspect tree.