ranges fix