Bug fix: invalid construction of the bounding box of the rectangular shapes.