avoid name changing when replacing tags