fix the valueRange value which is off by 1.