Rewards calculation fix