Fixed bug with canvas and SVG integration