Correct minmax results