fix min/max issues with input[type="number"]