The code put the value from the "min" property into the "max" value. This would have crashed if min was null and max wasn't.