Fixed bug with leaderboard

The leaderboard was not updating correctly before