fixed the appending of the svg