Fix map-reduce code path for compute leaderboard.