ranking bug fix