Fixed a bug in finding loan availability.