handle same maximum and minimum value

there is crash in showing range slider if the maximum and minimum value is same, and sometime its not crash but the slider is not showing