Fix range validator