Fix issue with min value.