Fixed max function name