Fix a bug in Stats.minBy.