Fix ranges;