Fixing duplicate element ids