fixed bug on debts page