Fixing some typos in ranking analysis.
Fixing ranking analysis bugs.