fixed writing HandRanks.dat