fix bug where svg is shown twice