fix ranks table