fix max function