corrected a bug when updatebalance after updateIncome