Fix a few bugs when input=range is not supported or when no change is made