fix reverse behavior for Range and Repeat