Correction of samples