Fix leaderboard bug.
Minor fixes for elasticsearch 1.0.0