fix duplicate element ids