fix bug of overlap shift.