more fixes to budget connections calculation