Fixing calculations for mean and max scores