Fix call to max.