Fix pattern `toSVG`