added a hack to draw SVG when frequency changes... not proper