Indeterminate behaviour using range and reverse range in same partial