Strange conceptual issues with max/min