Correction of drift