fixed a bug in calculating the balance from a legacy savefile
