Remove erroneous shifts.