fixed debit bug