diode merge fix