Fixed get rank name method