Merge pull request #23868 from deepeshgarg007/loan_patch_fix

fix: Patch for old loans