Remove unnecessary decode() calls
Fix retrieving the ranking