Avoid a bug in using svg as badge (Chrome, Safari and Firefox on Mac)