Fixed svg duplication logic on safari.