fixed pending_invoices and unpaid_contracts in student