update money value correctly.