fix for ranking