Fix leaderboard update error on edge condition.