DEV: fix bug when computing ranking based on tennis discount curve