fix leaderboard logic