Corrects for misalignments