Fixed a small error in updating loan stats.