bug fix for cash flow