Corrections on the calculation of total_exposure and credit check validation.