Fixing the unwanted 'defs' created in svg