Fix the range of shifts.