fix cropped len in ranges