RangeRStream fix