Fix polygon/polyline bounding box