fix issue with min/max