Correction of diode packaging