Corrected the types when calling the max function.
Corrected the types when calling the max function.

MattiasLiljeson/Amalgamation,MattiasLiljeson/Amalgamation,MattiasLiljeson/Amalgamation,MattiasLiljeson/Amalgamation