Fix error in average payoff calculation