Fix dumb min/max/minmax algorithm