Fixed `min` and `max` methods which were swapped.