fix rank data