fix to ranking
merged fix to ranking