Bugfix for PolyRectangle length (oops!).