Fix The use of range-antipattern.