fix min/max for input[range]