Fix template broken links in DOT/SVG (erroneous computation).