Fix range issues for cases with start != 1