rank bug fix