fix bug caused by loading the svg twice