Fixed resize event to not overwrite itself when multiple SVGs are present