fixes bug in total budgets