fixed bug in leaderboard code