Fixed  minor bug in the cash tool