There is a subtle bug in the CosmeticCorrection Use Defect List option. When correcting a column or row, the implementation calculates the replacement value for a pixel to be the median value of the 24 pixels in the nearest 5x5 square excluding the pixel being corrected. When correcting a pixel in a column, the two pixels directly above and below in are included in the median calculation but they should not be since in a bad column these pixels are bad data. Similarly, when correcting a row the two pixels to the left and right are included in the median calculation. I have test data to confirm.