fix rank number.