Fixed typo in min/max.