Use correct variable in get leaderboard function. Fixes php notices.