Ranking query has been fixed