Forming debts array fix